package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;

/**
 * @Description 订单项 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-09 19:15:53 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "订单项")
@Table ( name ="Order_Item")
public class OrderItem  implements Serializable {

	private static final long serialVersionUID =  2202591190703573085L;

	/**
	 * 订单项ID
	 */
	@ApiModelProperty(value = "订单项ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Order_Item_Id" )
	private Long orderItemId;

	/**
	 * 订单ID
	 */
	@ApiModelProperty(value = "订单ID")
   	@Column(name = "Order_Form_Id" )
	private Long orderFormId;

	/**
	 * 票种ID
	 */
	@ApiModelProperty(value = "票种ID")
   	@Column(name = "Ticket_Type_Id" )
	private Long ticketTypeId;

	/**
	 * 票类型
	 */
	@ApiModelProperty(value = "票类型")
   	@Column(name = "typeName" )
	private String typeName;

	/**
	 * 票数
	 */
	@ApiModelProperty(value = "票数")
   	@Column(name = "Count" )
	private Long count;

	/**
	 * 微信公开ID
	 */
	@ApiModelProperty(value = "微信公开ID")
   	@Column(name = "OpenId" )
	private String openId;

	/**
	 * 订单金额
	 */
	@ApiModelProperty(value = "订单金额")
   	@Column(name = "Amount" )
	private Long amount;

	public Long getOrderItemId() {
		return this.orderItemId;
	}

	public void setOrderItemId(Long orderItemId) {
		this.orderItemId = orderItemId;
	}

	public Long getOrderFormId() {
		return this.orderFormId;
	}

	public void setOrderFormId(Long orderFormId) {
		this.orderFormId = orderFormId;
	}

	public Long getTicketTypeId() {
		return this.ticketTypeId;
	}

	public void setTicketTypeId(Long ticketTypeId) {
		this.ticketTypeId = ticketTypeId;
	}

	public String getTypeName() {
		return this.typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public Long getCount() {
		return this.count;
	}

	public void setCount(Long count) {
		this.count = count;
	}

	public String getOpenId() {
		return this.openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public Long getAmount() {
		return this.amount;
	}

	public void setAmount(Long amount) {
		this.amount = amount;
	}

	@Override
	public String toString() {
		return "{" +
					"orderItemId='" + orderItemId + '\'' +
					"orderFormId='" + orderFormId + '\'' +
					"ticketTypeId='" + ticketTypeId + '\'' +
					"typeName='" + typeName + '\'' +
					"count='" + count + '\'' +
					"openId='" + openId + '\'' +
					"amount='" + amount + '\'' +
				'}';
	}

}
